package com.ruoyi.shops.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shops.mapper.ShopsMapper;
import com.ruoyi.shops.domain.Shops;
import com.ruoyi.shops.service.IShopsService;

/**
 * 店铺Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-11-04
 */
@Service
public class ShopsServiceImpl implements IShopsService 
{
    @Autowired
    private ShopsMapper shopsMapper;

    /**
     * 查询店铺
     * 
     * @param id 店铺主键
     * @return 店铺
     */
    @Override
    public Shops selectShopsById(String id)
    {
        return shopsMapper.selectShopsById(id);
    }

    /**
     * 查询店铺列表
     * 
     * @param shops 店铺
     * @return 店铺
     */
    @Override
    public List<Shops> selectShopsList(Shops shops)
    {
        return shopsMapper.selectShopsList(shops);
    }

    /**
     * 新增店铺
     * 
     * @param shops 店铺
     * @return 结果
     */
    @Override
    public int insertShops(Shops shops)
    {
        return shopsMapper.insertShops(shops);
    }

    /**
     * 修改店铺
     * 
     * @param shops 店铺
     * @return 结果
     */
    @Override
    public int updateShops(Shops shops)
    {
        return shopsMapper.updateShops(shops);
    }

    /**
     * 批量删除店铺
     * 
     * @param ids 需要删除的店铺主键
     * @return 结果
     */
    @Override
    public int deleteShopsByIds(String[] ids)
    {
        return shopsMapper.deleteShopsByIds(ids);
    }

    /**
     * 删除店铺信息
     * 
     * @param id 店铺主键
     * @return 结果
     */
    @Override
    public int deleteShopsById(String id)
    {
        return shopsMapper.deleteShopsById(id);
    }
}
